package pers.sports.util;

import java.util.Random;

/**
 * 六位随机数字
 *
 * @datetime 2021/3/9 15:12
 */
public class VerificationCodeSix {

    public static String VerificationCode() {
        String sources = "0123456789";
        Random rand = new Random();
        StringBuffer flag = new StringBuffer();
        for (int j = 0; j < 6; j++) {
            flag.append(sources.charAt(rand.nextInt(9)) + "");
        }
        return flag.toString();
    }


}
